//
//  BDHUD.h
//  ProjectforHDX
//
//  Created by HDX on 16/7/19.
//  Copyright © 2016年 H.DX. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#import "showDetailsView.h"
#import "THOpenView.h"

@interface BDHUD : UIView
+ (instancetype)sharedManager;
/**
 *  展示HUD
 *
 *  @param UIView 父容器
 *  @param title  文本
 */
-(void)showBDHUD:(UIView*)superView title:(NSString*)title;

/**
 *  展示上传进度HUD
 *
 *  @param UIView 父容器
 *  @param title  文本
 */
-(void)showBDUploadHUD:(UIView*)superView title:(NSString*)title;



/**
 *  修改上传进度HUD
 *
 *  @param title  progress
 */
-(void)setBDUploadProgressHUD:(CGFloat)progress;

/**
 *  销毁容器
 */
-(void)dismissHUD;

-(void)dismissHUD:(UIView*)view;

/**
 *  提示文本
 */
-(void)showWords:(NSString*)title;


/**
 *    无数据提示
 *
 *  @param superView 所在视图
 *  @param topy      距离顶部位置
 *  @param title     文字描述
 *  @param click     回调
 */
-(void)showNOneDataViewHUD:(UIView*)superView top:(CGFloat)topy title:(NSString*)title onClick:(void (^)())click;
/**
 *  弹窗
 *
 *  @param view    <#view description#>
 *  @param type    <#type description#>
 *  @param img     <#img description#>
 *  @param title   <#title description#>
 *  @param color   <#color description#>
 *  @param content <#content description#>
 *  @param btns    <#btns description#>
 *  @param success <#success description#>
 */
- (void)showViewToView:(UIView *)view ContentType:(NSInteger)type headImage:(UIImage *)img headTitle:(NSString *)title headColor:(UIColor *)color text:(id)content bottons:(NSArray*)btns click:(showDetailsViewBlock)success;

/**
 *  发货信息
 *
 *  @param view     <#view description#>
 *  @param img      <#img description#>
 *  @param title    <#title description#>
 *  @param subTitle <#subTitle description#>
 *  @param addr     <#addr description#>
 *  @param color    <#color description#>
 *  @param array    <#array description#>
 *  @param btns     <#btns description#>
 *  @param success  <#success description#>
 */
- (void)showViewToView:(UIView *)view  HeadImage:(UIImage*)img headTitle:(NSString*)title contacts:(NSString*)subTitle address:(NSString*)addr headColor:(UIColor*)color text:(id)array   bottons:(NSArray*)btns click:(showDetailsViewBlock)success;

/**
 *  故障件
 *
 *  @param view     <#view description#>
 *  @param img      <#img description#>
 *  @param title    <#title description#>
 *  @param subTitle <#subTitle description#>
 *  @param color    <#color description#>
 *  @param array    <#array description#>
 *  @param btns     <#btns description#>
 *  @param success  <#success description#>
 */
- (void)showViewToView:(UIView *)view HeadImage:(UIImage*)img headTitle:(NSString*)title subTitle:(NSString*)subTitle  headColor:(UIColor*)color text:(NSArray*)array    bottons:(NSArray*)btns click:(showDetailsViewBlock)success;
@end
